package io.codegeneratetool.web.common;


import java.io.Serializable;
import java.util.List;
 

public class PagerResult<T extends Object>  implements Serializable {
 private static final long serialVersionUID = 1L;
 
 /**  当前页 */
private int page=1;
 
 /**  总数 */
private int total=30;
 
 /**  当前页记录数 */
private int records;
 
 /**  结果集 */
private List<T>  rows;
public PagerResult(){}
 public PagerResult(int page, int total, int records, List<T>  rows) {
  super();
  this.page = page;
  this.total = total;
  this.records = records;
   
	  this.rows = rows;
  
 }

 public int getPage() {
  return page;
 }

 public int getTotal() {
  return total;
 }

 public int getRecords() {
  return records;
 }

 public List<T> getRows() {
  return rows;
 }

 public void setPage(int page) {
  this.page = page;
 }

 public void setTotal(int total) {
  this.total = total;
 }

 public void setRecords(int records) {
  this.records = records;
 }

 public void setRows(List<T> rows) {
  this.rows = rows;
 }
}

 